package com.hist.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hist.entity.AllScore;
import com.hist.entity.Student;
import com.hist.service.StudentService;

@Controller
public class StudentController {
      
	   @Autowired
	   StudentService service;
	   
	   @ResponseBody
	   @RequestMapping("/CV")
	   public List<Student> checkMyCV(Integer sno)
	   {
		   return service.checkMyCV(sno);
	   }
	   
	   @ResponseBody
	   @RequestMapping("/SCORE")
	   public List<AllScore> checkMyScore(Integer sno)
	   {
		   return service.checkMyScore(sno);
	   }
	   
}
